package com.yuanbao.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户登录日志表
 * </p>
 *
 * @author wangjinliang
 * @since 2025-09-16
 */
@Getter
@Setter
@TableName("t_platform_user_login")
public class PlatformUserLogin implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * token
     */
    private String token;

    /**
     * 过期时间
     */
    private LocalDateTime tokenExpiredTime;

    /**
     * ip地址
     */
    private String ip;

    /**
     * 删除状态 1删除 0未删除
     */
    private Byte deleted;

    /**
     * 新建时间
     */
    private LocalDateTime gmtCreate;
}
